﻿#pragma execution_character_set("utf-8")

#include "main_center_widget.h"

#include "FirstGrade/first_grade_widget.h"
#include "SecondGrade/sophomore_widget.h"
#include "ThirdGrade/third_grade_widget.h"
#include "FourthGrade/fourth_grade_widget.h"
#include "FifthGrade/fifth_grade_widget.h"
#include "SixthGrade/sixth_grade_widget.h"

MainCenterWidget::MainCenterWidget(QWidget *parent)
    : QTabWidget(parent)
    , m_firstGradeWidget(new FirstGradeWidget(this))
    , m_sophomoreWidget(new SophomoreWidget(this))
    , m_thirdGradeWidget(new ThirdGradeWidget(this))
    , m_fourthGradeWidget(new FourthGradeWidget(this))
    , m_fifthGradeWidget(new FifthGradeWidget(this))
    , m_sixthGradeWidget(new SixthGradeWidget(this))

{

    addTab(m_firstGradeWidget,tr("一年级"));
    addTab(m_sophomoreWidget,tr("二年级"));
    addTab(m_thirdGradeWidget,tr("三年级"));
    addTab(m_fourthGradeWidget,tr("四年级"));
    addTab(m_fifthGradeWidget,tr("五年级"));
    addTab(m_sixthGradeWidget,tr("六年级"));
    setCurrentIndex(1);
}
